package cn.com.nes.mybatis.agent.project.mapper;

import cn.com.nes.mybatis.agent.project.entity.TProject;
import cn.com.nes.site.entity.bo.project.DispatchedProjectBO;
import cn.com.nes.site.entity.vo.project.ProjectAcceptanceVO;
import cn.com.nes.site.entity.vo.project.ProjectPageVO;
import cn.com.nes.site.service.project.dto.GetTProjectByOrderId;
import cn.com.nes.site.service.project.dto.TProjectDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yishuai
 * @description 针对表【t_project(项目表)】的数据库操作Mapper
 * @createDate 2023-10-18 18:25:12
 * @Entity cn.com.nes.mybatis.agent.project.entity.TProjectRecord
 */
public interface TProjectMapper extends BaseMapper<TProject> {


    List<TProject> projectPage(Page<TProject> page, @Param("vo") ProjectPageVO vo);


    List<TProjectDTO> getdispatchedProjectPage(Page<TProjectDTO> page, @Param("bo") DispatchedProjectBO bo);


    TProject getUnDeletedProjectByUuid(@Param("projectUuid") String projectUuid);

    List<GetTProjectByOrderId> getTProjectByOrderId(Long workOrderId);

    Integer projectAcceptance( @Param("vo") ProjectAcceptanceVO vo);
}
